import VueRouter from 'vue-router';

import index from '../../components/index/index.vue';
import maincon from '../../components/index/maincon.vue';
import treasure from '../../components/maincon/treasure.vue';
import kindleshop from '../../components/maincon/kindleshop.vue';
import MainTimer from '../../components/maincon/MainTimer.vue';
import swipe from '../../components/maincon/swipe.vue';
import classfiy from '../../components/maincon/classfiy.vue';
import classfiy1 from '../../components/classfiy/classfiy1.vue';
import classfiy2 from '../../components/classfiy/classfiy2.vue';
import kindle from '../../components/maincon/kindle.vue';
import swipenext from '../../components/maincon/swipenext.vue';
import book from '../../components/maincon/book.vue';

export default new VueRouter({
  routes:[
    {
      path:'/',
      component:index,
      children:[
        {
          path:'/maincon',
          component:maincon,
          children:[
            {
              path:'/',
              component:MainTimer,
              children:[
              {
              path:'/',
              component:swipe,
              children:[
                {
                  path:'/',
                  component:swipenext,
                }
               
              ]
               }
              ]
            }
          ]
        }
      ],
      redirect:'/maincon'
    },
    {
      path:'/treasure',
      component:treasure,
    },
    {
      path:'book',
      component:book,
    },
    {
      path:'/classfiy',
      component:classfiy,
      redirect:'classfiy1',
      children:[
        {
          path:'/',
          component:classfiy1,
        },
        {
          path:'/',
          component:classfiy2,
        }
      ]
    },
    {
      path:'/kindleshop',
      component:kindleshop,
    },
    {
      path:'/kindle',
      component:kindle,
    },
    {
      path:'/*',
      redirect:'/'
    }
  ]
})
